export default {
    namespaced: true,
    state: {
        vmDataManagerDisplay: false,
        vmDataManager_id: undefined,
    },
    mutations: {
        vmDataManagerOperate(state, option) {
            switch (String(option[0]).toLowerCase()) {
                case "open":
                    state.vmDataManagerDisplay = true;
                    if (option.length > 1 && typeof option[1] !== "undefined") {
                        state.vmDataManager_id = option[1];
                    }
                    break;
                case "close":
                    state.vmDataManagerDisplay = false;
                    state.vmDataManager_id = undefined;
                    break;
            }
        }
    }
}